package exception;

public class ThrowsDemo {
    public static void main(String[] args) {


    Student zs = new Student();
    try{
       zs.setAge(250);
    }catch(IllegalAgeException e){
        e.printStackTrace();
    }
  }
}